import React from 'react';
import { observer } from 'mobx-react';
import { WeaAlertPage, WeaLocaleProvider } from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;

export default observer((props) => {
    const { type, ..._props } = props;
    const Com = {  }[type];
    if (Com) {
        return (
            <Com {..._props} />
        )
    } else {
        return (
            <WeaAlertPage icon={<i className='icon-coms-break-link' />} paddingTop='5%' >
                <div style={{ color: '#000' }}>
                    {getLabel(383792, '您访问的页面不存在！')}
                </div>
            </WeaAlertPage>
        )
    }

})